
<?php
echo form_open('horario_controller/guardar/');
$btn_grabar = array(
    'type' => 'submit',
    'class' => 'btn btn-sm btn-primary btn-block',
    'value' => 'Grabar'
);
$hora_inicio = array('id' => 'hora_inicio','type' => 'text', 'readonly' => 'true', 'name' => 'fecha_inicio', 'class' => 'finput-append time form_time form-control', 'size' => '50', 'value' => '');
$hora_fin = array('id' => 'hora_fin', 'name' => 'fecha_fin','readonly' => 'true', 'class' => 'finput-append time form_time form-control', 'size' => '50', 'value' => '');
echo '</br><div class="panel panel-default">';
echo ' <div class="panel-heading">
    <h3 class="panel-title">Editar</h3>
  </div>';
echo ' <div class="panel-body">';
echo '<div class="row-fluid">';
echo '<div class="col-sm-3">';
echo '<label class="control-label">Fecha Inicio:</label> ';
echo '</div>';
echo '<div class="col-sm-9">';
echo form_input($hora_inicio) . '<br>';
echo '</div>';
echo '<div class="col-sm-3">';
echo '<label class="control-label">Fecha Fin:</label> ';
echo '</div>';
echo '<div class="col-sm-9">';
echo form_input($hora_fin) . '<br>';
echo '</div>';
echo '</div>';
echo '</div>';
echo '</div>';
echo '<div class="panel panel-default">	';
echo ' <div class="panel-heading">
    <h3 class="panel-title">Medicos</h3>
  </div>';
echo ' <div class="panel-body">';
$source = array();
foreach ($medicos as $fila) {
    $source[$fila['id']] = $fila['titulo'].' '.$fila['nombres'].' '. $fila['apellidos'];
}
$target = array();


echo form_multiselect('medicos[]', $source, $target,'class="form-control selectpicker"');
    echo '</div>';
    echo '</div>';
echo '<div class="panel panel-default">';
echo ' <div class="panel-body">';
echo '<div class="input-group">';
echo form_submit($btn_grabar);
echo form_close();
echo '</div>';
echo '</div>';
echo '</div>';
?>

